package com.xjm.ips.mapper;

import com.xjm.ips.entity.SettleSalary;
import com.xjm.ips.entity.SettleTax;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SettleSalaryMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SettleSalary record);

    int insertSelective(SettleSalary record);

    SettleSalary selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SettleSalary record);

    int updateByPrimaryKey(SettleSalary record);

    List<SettleSalary> getAllSettleSalariesForSearch(@Param("pageNo") Integer pageNo,
                                                     @Param("pageSize") Integer pageSize,
                                                     @Param("settleSalary") SettleSalary settleSalary);

    Long getTotalForSearch(SettleSalary settleSalary);

    List<SettleSalary> getAllSettleSalaries(@Param("pageNo") Integer pageNo,
                                            @Param("pageSize") Integer pageSize,
                                            @Param("settleSalary") SettleSalary settleSalary);

    Long getTotal(SettleSalary settleSalary);

    SettleTax getSumSettleData(String jobNo);
}